package com.bms.hystrix.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 出访管理(ChuFangGuanLi)实体类
 *
 * @author makejava
 * @since 2021-03-15 17:51:31
 * @version 1.0
 */
@ApiModel(value = "ChuFangGuanLiGenXing",description = "出访管理更新")
public class ChuFangGuanLiGenXing implements Serializable {
    private static final long serialVersionUID = -8001069814621906021L;
    @Min(value = 1, message = "主键id必须大于0")
    @NotNull(message = "id不能为空")
    private Integer id;
//    /**
//    * 出访时间
//    */
//
//	@ApiModelProperty(name = "chuFangShiJian",notes = "出访时间",dataType = "Date",required = true)
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    // 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date chuFangShiJian;
    /**
    * 预计出访时间
    */
	@ApiModelProperty(name = "yuJiChuFangShiJian",notes = "预计出访时间",dataType = "Date",required = true)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    // 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date yuJiChuFangShiJian;
    /**
    * 出访目的
    */
    @ApiModelProperty(name = "chuFangMuDe",notes = "出访目的",dataType = "String",required = true)
    @NotBlank(message = "chuFangMuDe 出访目的不能为空")
    @Size(min = 0, max = 50, message = "chuFangMuDe 出访目的必须在0~50位之间")
    private String chuFangMuDe;
    /**
    * 出访申请人
    */
    @NotBlank(message = "chuFangShenQingRen 出访人员不能为空")
    @Size(min = 0, max =8, message = "chuFangShenQingRen 出访人员必须在0~8位之间")
	@ApiModelProperty(name = "chuFangShenQingRen",notes = "出访申请人",dataType = "String",required = true)
    private String chuFangShenQingRen;
//    /**
//    * 出访人员id
//    */
//	@ApiModelProperty(name = "chuFangRenYuanId",notes = "出访人员id",dataType = "Integer",required = true)
//    private Integer chuFangRenYuanId;
//    /**
//    * 合作计划id(id为-1为 自由出访人员 反之显示合作名)
//    */
//	@ApiModelProperty(name = "heZuoJiHuaId",notes = "合作计划id(id为-1为 自由出访人员 反之显示合作名)",dataType = "String",required = true)
//    private int heZuoJiHuaId;
    /**
    * 随行学生id（例子：1,2,3）
    */
    @Size(min = 0, max = 25, message = "suiHangXueSheng 随行学生必须在0~25位之间")
    @Pattern(regexp = "^[\\d+,]*\\d+$",message = "suiHangXueSheng 随行学生 格式不匹配 1,2,3,4")
	@ApiModelProperty(name = "suiHangXueSheng",notes = "随行学生id（例子：1,2,3）",dataType = "String",required = true)
    private String suiHangXueSheng;

    public Date getYuJiChuFangShiJian() {
        return yuJiChuFangShiJian;
    }

    public void setYuJiChuFangShiJian(Date yuJiChuFangShiJian) {
        this.yuJiChuFangShiJian = yuJiChuFangShiJian;
    }
        
    public String getChuFangMuDe() {
        return chuFangMuDe;
    }

    public void setChuFangMuDe(String chuFangMuDe) {
        this.chuFangMuDe = chuFangMuDe;
    }
        
    public String getChuFangShenQingRen() {
        return chuFangShenQingRen;
    }

    public void setChuFangShenQingRen(String chuFangShenQingRen) {
        this.chuFangShenQingRen = chuFangShenQingRen;
    }

    public String getSuiHangXueSheng() {
        return suiHangXueSheng;
    }

    public void setSuiHangXueSheng(String suiHangXueSheng) {
        this.suiHangXueSheng = suiHangXueSheng;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "ChuFangGuanLiGenXing{" +
                "id=" + id +
                ", yuJiChuFangShiJian=" + yuJiChuFangShiJian +
                ", chuFangMuDe='" + chuFangMuDe + '\'' +
                ", chuFangShenQingRen='" + chuFangShenQingRen + '\'' +
                ", suiHangXueSheng='" + suiHangXueSheng + '\'' +
                '}';
    }
}